import { createApp } from 'vue'
import ElementPlus from 'element-plus';
import * as ElementPlusIcons from '@element-plus/icons'

import App from './App.vue'
import router from './router'
import store from './store'

import 'element-plus/dist/index.css';
import '@/assets/styles/dmp-base.less'
import '@/assets/styles/element-plus-override.less'

import 'dayjs/locale/zh-cn'
import locale from 'element-plus/lib/locale/lang/zh-cn'

const app = createApp(App);
app.use(store);
app.use(router);
app.use(ElementPlus, { locale, size: 'mini' });

for (const icon of Object.values(ElementPlusIcons)) {
    app.component(icon.name, icon);
}
app.mount('#app');